package com.bby.common.model;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.UUID;

@Data
public class FavoriteGroup {
    @Id
    private String id;// 收藏夹id
    private String name;// 收藏夹命名
    private List<Favorite> content;// 收藏内容

    public FavoriteGroup() {
    }

    public FavoriteGroup(String name) {
        this.name = name;
        id= UUID.randomUUID().toString().replaceAll("-","");
        content = new ArrayList<>();
    }
}
